import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/pc/Home.vue'
import Fault from '../components/fault'

Vue.use(VueRouter)

const routes = [
   {
    path: '/',
    redirect: '/fault'
  },
  {
    path: '/home',
    components: {
      pc: Home,
    },
    children: [
      {
        path: '/fault',
        components: {
          pc: Fault
        }
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
